package br.com.async.agilequiz.domain;

import java.io.Serializable;
import java.util.Collection;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "person")
public class Person implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@DatabaseField(generatedId=true, allowGeneratedIdInsert = true)
	private Integer id;
	
	@DatabaseField
	private String name;
	
	@ForeignCollectionField(eager = true, foreignFieldName = "person", columnName="person_has_aswered_questions")
	private Collection<AnsweredQuestion> answeredQuestions;
	
	public Person(){
		
	}



}
